package com.wangrui.entity;

import java.io.Serializable;

//@Alias("user")//注解取别名，解决使用package批量取别名，不同包下，类名相同，别名也相同的问题
public class User implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 6000919961341638556L;
    private Integer id;
    private String name;
    private Integer age;

    private Integer minAge;//用于查询条件
    private Integer maxAge;
    private String pwd;
    private String exeName;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getMinAge() {
        return minAge;
    }

    public void setMinAge(Integer minAge) {
        this.minAge = minAge;
    }

    public Integer getMaxAge() {
        return maxAge;
    }

    public void setMaxAge(Integer maxAge) {
        this.maxAge = maxAge;
    }

    public String getExeName() {
        return exeName;
    }

    public void setExeName(String exeName) {
        this.exeName = exeName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public User() {
    }

    public User(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", minAge=" + minAge +
                ", maxAge=" + maxAge +
                ", pwd='" + pwd + '\'' +
                ", exeName='" + exeName + '\'' +
                '}';
    }
}